import http from '@/utils/http.js'

// 获取用户信息
export const configData = (data) => {
	return http('GetConfigData', 'POST', data)
}
// 获取分类类型
export const configTypes = () => {
	return http('GetConfigTypes', 'POST')
}
// 获取推荐视频
export const recommendVideos = () => {
	return http('GetRecommendVideos', 'POST')
}
// 获取历史记录
export const historyList = (data) => {
	return http('RecordList', 'POST', data)
}
// 获取收藏记录
export const collectList = (data) => {
	return http('CollectList', 'POST', data)
}
// 获取更多影片
export const videoList = (data) => {
	return http('GetVideoList', 'POST', data)
}
// 获取影片详情
export const videoInfo = (data) => {
	return http('GetVideoInfo', 'POST', data)
}
// 点击播放次数
export const playVideoNums = (data) => {
	return http('PlayVideo', 'POST', data)
}
// 收藏和取消收藏
export const addCollect = (data) => {
	return http('AddCollect', 'POST', data)
}
//受欢迎次数
export const popularity = (data) => {
	return http('Popularity', 'POST', data)
}
// 搜索
export const searchVideos = (data) => {
	return http('SearchVideos', 'POST', data)
}
// // 获取搜索推荐
export const seachRecommend = (data) => {
	return http('GetSeachRecommend', 'POST', data)
}
export const typeVideos = (data) => {
	return http('GetTypeVideos', 'POST', data)
}